package com.lanou.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 姚云鹏
 * Create at: 2018/6/22 14:47
 */
public class Book {
    private Integer id;
    private String name;
    private String author;
    private Double price;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date publishDate;
    private String priImg;
    private String subImgs;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public String getPriImg() {
        return priImg;
    }

    public void setPriImg(String priImg) {
        this.priImg = priImg;
    }

    public String getSubImgs() {
        return subImgs;
    }

    public void setSubImgs(String subImgs) {
        this.subImgs = subImgs;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                ", publishDate=" + publishDate +
                ", priImg='" + priImg + '\'' +
                ", subImgs='" + subImgs + '\'' +
                '}';
    }
}
